package com.dayuanit.pay.bank.domain;

public class SinaPayQuery {
	private String inputCharset = "1";
	private String version = "v2.3";
	private String merchantId;
	private String orderId;
	private String dealId;
	private String signType;
	private String signMsg;
	
	private SinaPayQuery() {
		
	}
	
	public static SinaPayQuery instance() {
		return new SinaPayQuery();
	}
	
	public String createSignOrigin() {
		StringBuilder sx = new StringBuilder();
		sx.append("inputCharset=").append(this.inputCharset).append("&")
			.append("version=").append(this.version).append("&")
			.append("merchantId=").append(this.merchantId).append("&")
			.append("orderId=").append(this.orderId).append("&")
			.append("dealId=").append(this.dealId).append("&")
			.append("signType=").append(this.signType);
		
		return sx.toString();
	}
	
	public String getMerchantId() {
		return merchantId;
	}
	public SinaPayQuery setMerchantId(String merchantId) {
		this.merchantId = merchantId;
		return this;
	}
	public String getInputCharset() {
		return inputCharset;
	}
	public void setInputCharset(String inputCharset) {
		this.inputCharset = inputCharset;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getOrderId() {
		return orderId;
	}
	public SinaPayQuery setOrderId(String orderId) {
		this.orderId = orderId;
		return this;
	}
	public String getDealId() {
		return dealId;
	}
	public SinaPayQuery setDealId(String dealId) {
		this.dealId = dealId;
		return this;
	}
	public String getSignType() {
		return signType;
	}
	public SinaPayQuery setSignType(String signType) {
		this.signType = signType;
		return this;
	}
	public String getSignMsg() {
		return signMsg;
	}
	public void setSignMsg(String signMsg) {
		this.signMsg = signMsg;
	}
	
}
